﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WJSHWebApi.DBModel
{
    /// <summary>
    /// 
    /// </summary>
    [Table("Slittingmachine_Entity")]
    public class Slittingmachine_Entity : BaseDbmodel
    {
        [Key]

        public int Id { get; set; }

        /// <summary>
        /// 机器编号
        /// </summary>
        public int Deviceid { get; set; }
        public int PutStation { get; set; }
        public int PutPreStation { get; set; }
        public int PutBackStation { get; set; }
        public int GetStation { get; set; }
        public int GetPreStation { get; set; }
        public int GetBackStation { get; set; }

        public int GetStation2 { get; set; }
        public int GetPreStation2 { get; set; }
        public int GetBackStation2 { get; set; }    
        public int PutArea { get; set; }
        public int GetArea { get; set; }
        public int Flow { get; set; }
        public int PutTaskTypeUP{ get; set; }
        public int PutTaskTypeUP2 { get; set; }
        public int GetTaskTypeUP { get; set; }

        public int PutTaskTypeDown { get; set; }
        public int GetTaskTypeDown { get; set; }
        public string Remark { get; set; }
        public bool IsEnable { get; set; }
        public Slittingmachine_Entity Clone()
        {
            return new Slittingmachine_Entity()
            {
                Deviceid = this.Deviceid,
                PutStation = this.PutStation,
                PutPreStation = this.PutPreStation,
                PutBackStation = this.PutBackStation,
                GetStation = this.GetStation,
                GetPreStation = this.GetStation,
                GetBackStation = this.GetBackStation,

                GetStation2 = this.GetStation2,
                GetPreStation2 = this.GetPreStation2,
                GetBackStation2 = this.GetBackStation2,
                PutArea = this.PutArea,
                GetArea = this.GetArea,
                Flow = this.Flow,

                Remark = this.Remark
            };
        }
    }
}

